.class Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;
.super Landroid/os/AsyncTask;
.source "Main.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ScanForCodesTask"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/Void;",
        "Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;",
        ">;"
    }
.end annotation


# instance fields
.field private final dialog:Landroid/app/ProgressDialog;

.field final synthetic this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;


# direct methods
.method private constructor <init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V
    .locals 1
    .parameter

    .prologue
    .line 149
    iput-object p1, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    .line 151
    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->dialog:Landroid/app/ProgressDialog;

    return-void
.end method

.method synthetic constructor <init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 149
    invoke-direct {p0, p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    return-void
.end method

.method private getCodes(Ljava/io/File;)Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    .locals 10
    .parameter "f"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 228
    const/4 v1, 0x0

    .line 230
    .local v1, codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :try_start_0
    new-instance v5, Ljava/io/FileInputStream;

    invoke-direct {v5, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    .line 232
    .local v5, fis:Ljava/io/FileInputStream;
    const/4 v7, 0x4

    new-array v0, v7, [B

    fill-array-data v0, :array_0

    .line 233
    .local v0, begin:[B
    const/4 v7, 0x2

    new-array v4, v7, [B

    fill-array-data v4, :array_1

    .line 236
    .local v4, ending:[B
    invoke-direct {p0, v0, v4, v5}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->getMsg([B[BLjava/io/FileInputStream;)Ljava/lang/String;

    move-result-object v6

    .line 237
    .local v6, message:Ljava/lang/String;
    sget-object v7, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "message "

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 242
    new-instance v2, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    invoke-direct {v2, v6}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Lcom/clarkehackworth/SamsungGalaxySUnlock/CodesException; {:try_start_0 .. :try_end_0} :catch_2

    .end local v1           #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    .local v2, codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    move-object v1, v2

    .line 261
    .end local v0           #begin:[B
    .end local v2           #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    .end local v4           #ending:[B
    .end local v5           #fis:Ljava/io/FileInputStream;
    .end local v6           #message:Ljava/lang/String;
    .restart local v1       #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :goto_0
    return-object v1

    .line 245
    :catch_0
    move-exception v7

    move-object v3, v7

    .line 247
    .local v3, e:Ljava/io/FileNotFoundException;
    if-nez v1, :cond_0

    .line 248
    new-instance v1, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    .end local v1           #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    invoke-direct {v1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;-><init>()V

    .line 249
    .restart local v1       #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :cond_0
    iget-object v7, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    const v8, 0x7f040018

    invoke-virtual {v7, v8}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->addError(Ljava/lang/String;)V

    goto :goto_0

    .line 250
    .end local v3           #e:Ljava/io/FileNotFoundException;
    :catch_1
    move-exception v7

    move-object v3, v7

    .line 253
    .local v3, e:Ljava/io/IOException;
    if-nez v1, :cond_1

    .line 254
    new-instance v1, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    .end local v1           #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    invoke-direct {v1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;-><init>()V

    .line 255
    .restart local v1       #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :cond_1
    const-string v7, "IO error"

    invoke-virtual {v1, v7}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->addError(Ljava/lang/String;)V

    goto :goto_0

    .line 256
    .end local v3           #e:Ljava/io/IOException;
    :catch_2
    move-exception v7

    move-object v3, v7

    .line 257
    .local v3, e:Lcom/clarkehackworth/SamsungGalaxySUnlock/CodesException;
    if-nez v1, :cond_2

    .line 258
    new-instance v1, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    .end local v1           #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    invoke-direct {v1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;-><init>()V

    .line 259
    .restart local v1       #codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :cond_2
    invoke-virtual {v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/CodesException;->getMessage()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->addError(Ljava/lang/String;)V

    goto :goto_0

    .line 232
    nop

    :array_0
    .array-data 0x1
        0x53t
        0x53t
        0x4et
        0x56t
    .end array-data

    .line 233
    :array_1
    .array-data 0x1
        0xfft
        0xfft
    .end array-data
.end method

.method private getMsg([B[BLjava/io/FileInputStream;)Ljava/lang/String;
    .locals 15
    .parameter "begining"
    .parameter "ending"
    .parameter "fis"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 265
    const-string v4, ""

    .line 266
    .local v4, message:Ljava/lang/String;
    const/4 v9, 0x0

    .line 267
    .local v9, triggerCount:I
    const/16 v10, 0x800

    new-array v2, v10, [B

    .line 269
    .local v2, b:[B
    move-object/from16 v8, p1

    .line 270
    .local v8, trigger:[B
    const/4 v7, 0x0

    .line 271
    .local v7, recordMessage:Z
    const/4 v6, 0x0

    .line 272
    .local v6, read:I
    :cond_0
    const/4 v10, -0x1

    if-gt v6, v10, :cond_1

    move-object v5, v4

    .line 303
    .end local v4           #message:Ljava/lang/String;
    .local v5, message:Ljava/lang/String;
    :goto_0
    return-object v5

    .line 273
    .end local v5           #message:Ljava/lang/String;
    .restart local v4       #message:Ljava/lang/String;
    :cond_1
    move-object/from16 v0, p3

    move-object v1, v2

    invoke-virtual {v0, v1}, Ljava/io/FileInputStream;->read([B)I

    move-result v6

    .line 275
    const/4 v3, 0x0

    .local v3, index:I
    :goto_1
    if-ge v3, v6, :cond_0

    .line 276
    aget-byte v10, v2, v3

    aget-byte v11, v8, v9

    if-ne v10, v11, :cond_4

    .line 277
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v10

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "Encontrado "

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget-byte v12, v2, v3

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 278
    add-int/lit8 v9, v9, 0x1

    .line 286
    :cond_2
    :goto_2
    array-length v10, v8

    if-ne v9, v10, :cond_3

    .line 287
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v10

    const-string v11, "Encontrados todos"

    invoke-static {v10, v11}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 288
    if-nez v7, :cond_6

    .line 289
    const/4 v7, 0x1

    .line 290
    move-object/from16 v8, p2

    .line 291
    const/4 v9, 0x0

    .line 275
    :cond_3
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 280
    :cond_4
    if-eqz v9, :cond_5

    .line 281
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v10

    const-string v11, "reset"

    invoke-static {v10, v11}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 282
    :cond_5
    const/4 v9, 0x0

    .line 283
    if-eqz v7, :cond_2

    .line 284
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    new-instance v11, Ljava/lang/String;

    const/4 v12, 0x1

    new-array v12, v12, [B

    const/4 v13, 0x0

    aget-byte v14, v2, v3

    aput-byte v14, v12, v13

    invoke-direct {v11, v12}, Ljava/lang/String;-><init>([B)V

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_2

    :cond_6
    move-object v5, v4

    .line 293
    .end local v4           #message:Ljava/lang/String;
    .restart local v5       #message:Ljava/lang/String;
    goto :goto_0
.end method


# virtual methods
.method protected varargs doInBackground([Ljava/lang/String;)Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    .locals 4
    .parameter "arg0"

    .prologue
    .line 164
    const/4 v0, 0x0

    .line 165
    .local v0, codes:Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    new-instance v2, Ljava/io/File;

    const/4 v3, 0x0

    aget-object v3, p1, v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 169
    .local v2, f:Ljava/io/File;
    :try_start_0
    invoke-direct {p0, v2}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->getCodes(Ljava/io/File;)Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    move-object v3, v0

    .line 177
    :goto_0
    return-object v3

    .line 170
    :catch_0
    move-exception v1

    .line 172
    .local v1, e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 173
    const/4 v3, 0x0

    goto :goto_0
.end method

.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->doInBackground([Ljava/lang/String;)Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    move-result-object v0

    return-object v0
.end method

.method protected onPostExecute(Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;)V
    .locals 9
    .parameter "codes"

    .prologue
    const-string v8, "\n"

    .line 185
    const-string v3, ""

    .line 187
    .local v3, message:Ljava/lang/String;
    if-eqz p1, :cond_3

    .line 189
    invoke-virtual {p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->getErrors()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-nez v4, :cond_2

    .line 190
    const-string v3, "Codigos encontrados\n"

    .line 191
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Codigo de liberacion       :"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->getUnlock()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\n"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 192
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Codigo para restaurar   :"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->getUnfreeze1()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\n\n\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 193
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-static {v4, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->access$0(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Ljava/lang/String;)V

    .line 194
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-static {v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->access$1(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v6, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "\n"

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    const v7, 0x7f040015

    invoke-virtual {v6, v7}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\n"

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->access$0(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Ljava/lang/String;)V

    .line 198
    new-instance v0, Lcom/clarkehackworth/SamsungGalaxySUnlock/SDCardSaveData;

    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-virtual {v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v0, v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/SDCardSaveData;-><init>(Landroid/content/Context;)V

    .line 200
    .local v0, cardSave:Lcom/clarkehackworth/SamsungGalaxySUnlock/ISaveData;
    :try_start_0
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-static {v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->access$1(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/ISaveData;->SaveData(Ljava/lang/String;)V

    .line 201
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Saved SGS_Unlock.txt to your SD card\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v3

    .line 217
    .end local v0           #cardSave:Lcom/clarkehackworth/SamsungGalaxySUnlock/ISaveData;
    :cond_0
    :goto_0
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    invoke-static {v4, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->access$2(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Ljava/lang/String;)V

    .line 219
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->showDialog(I)V

    .line 222
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v4}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 223
    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v4}, Landroid/app/ProgressDialog;->dismiss()V

    .line 225
    :cond_1
    return-void

    .line 202
    .restart local v0       #cardSave:Lcom/clarkehackworth/SamsungGalaxySUnlock/ISaveData;
    :catch_0
    move-exception v4

    move-object v1, v4

    .line 203
    .local v1, e:Ljava/lang/Exception;
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Unable to save to sd card: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\n"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0

    .line 206
    .end local v0           #cardSave:Lcom/clarkehackworth/SamsungGalaxySUnlock/ISaveData;
    .end local v1           #e:Ljava/lang/Exception;
    :cond_2
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Ningun codigo encontrado\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 207
    invoke-virtual {p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->getErrors()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_0

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 208
    .local v2, err:Ljava/lang/String;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\n"

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_1

    .line 213
    .end local v2           #err:Ljava/lang/String;
    :cond_3
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "Ningun codigo encontrado\nError desconocido\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto/16 :goto_0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;

    invoke-virtual {p0, p1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->onPostExecute(Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 3

    .prologue
    .line 156
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->dialog:Landroid/app/ProgressDialog;

    iget-object v1, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->this$0:Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;

    const v2, 0x7f040017

    invoke-virtual {v1, v2}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 157
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 158
    return-void
.end method
